/**  
 * <p>Title: Demo.java</p>
 * <p>Description: </p>
 * <p>Copyright: </p>  
 * <p>Company: </p>  
 * @author sunh
 * @date 2019年8月1日  下午1:57:08
 * @version 1.0  
 */  
package com.chinacoal.microservice.impl.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.model.wofkflow.QueryTaskListParam;
import com.chinacoal.microservice.model.wofkflow.entity.WorkItemEntity;

/**  
 * @Package：com.chinacoal.microservice.impl.mapper.WorkItemMapper
 * @ClassName：WorkItemMapper
 * @ClassDesc：工作项mapper
 * @Createby：sunh
 * @CreatedDate：2019-10-12 10:34:55
 */  
public interface WorkItemMapper extends BaseMapper<WorkItemEntity> {

	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.WorkItemMapper.getWorkItemList
	 * @MethodName: getWorkItemList
	 * @MethodDesc: 
	 * @ParamList: {
	 *				 @param taskPage
	 *				 @param queryParam
	 *				 @return List<WorkItemEntity>
	 *			   }
	 * @Createby: sunh
	 * @CreatedDate: 2019-10-12 10:27:38
	 */ 
	public List<WorkItemEntity> getWorkItemList(Page<WorkItemEntity> taskPage, QueryTaskListParam queryParam);
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.WorkItemMapper.getWorkItemByInstanceId
	 * @MethodName: getWorkItemByInstanceId
	 * @MethodDesc: 根据实例id获取最新工作项id
	 * @ParamList: {
	 *				 @param instanceId
	 *				 @return List<WorkItemEntity>
	 *			   }
	 * @Createby: sunh
	 * @CreatedDate: 2019-10-12 10:34:30
	 */ 
	public List<WorkItemEntity> getWorkItemByInstanceId(@Param("instanceId") Long instanceId);
	
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.mapper.WorkItemMapper.settingTitle
	 * @MethodName: settingTitle
	 * @MethodDesc: 设置待办标题
	 * @ParamList: {
	 *				 @param instanceId 
	 *				 @param taskTitle
	 *				 @param currentstate
	 *			   }
	 * @Createby: sunh
	 * @CreatedDate: 2019-10-29 09:01:32
	 */ 
	public void settingTitle(Map<String, Object> param);
	
	public Long getUserIdByEmpId(@Param("empId") Long empId);
}
